<template>
  <div class="productionrisk">
    <div class="ac-sidebar-group">
      <div v-for="(item, index) in data" :key="index" class="ac-sidebar-block">
        <div class="ac-sidebar-font">{{ item.name }}</div>
        <div class="ac-sidebar-color" :style="{ height: height + 'px' }">
          {{ item.num }}
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { defineComponent } from "vue";

export default defineComponent({
  name: "Productionrisk",
  components: {},
  props: {
    data: {
      type: Array,
      default: () => {
        return [];
      },
    },
    height: {
      type: Number,
      default: Number,
    },
  },
  setup() {
    return {};
  },
  mounted() {},
  methods: {},
});
</script>
<style lang="scss" scoped>
.productionrisk {
  margin-top: 30px;
}
.ac-sidebar-group {
  display: flex;
  justify-content: space-around;

  .ac-sidebar-font {
    font-size: 13px;
    font-family: cn;
  }

  .ac-sidebar-color {
    color: #ffc916;
    font-family: num;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
  }
}
</style>
